package br.com.colecoes;

import java.util.NavigableMap;
import java.util.SortedMap;
import java.util.TreeMap;

public class Mapas {
	public static void main(String[] args) {
		TreeMap < String, String > map = new TreeMap < String, String > ();

		map.put("A","Amazon");
		map.put("B","Bus");
		map.put("C","Cation");
		map.put("D","Developer");
		
		
		SortedMap<String,String> nm1 = map.subMap("B", "C");
		SortedMap<String,String> nm2 = map.subMap("B", "C");
		
		nm1.put("B4", "Doctor");
		map.put("B3", "Factory");
		
		System.out.println(map.size()+" - "+nm1.size()+" - "+nm2.size());
		
	}
}

